﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCodeForRealEstate.Models
{
    public class HomeQRCode
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        public int HomeForSaleID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Code { get; set; }
        public string QRCode { get; set; }
        public bool Active { get; set; }
    }

    public class HomeQRCodeDBContext : DbContext
    {
        public DbSet<HomeQRCode> HomeQRCodes { get; set; }

        public DbSet<HomeForSale> HomeForSales { get; set; }
    }
}